﻿@page "/docs/helpers/enums/text"

<Seo Canonical="/docs/helpers/enums/text" Title="Enums: Text" Description="Learn about the Blazorise Text enums." />

<DocsPageTitle>
    Enums: Text
</DocsPageTitle>

<DocsPageSection>
    <DocsPageSectionHeader Title="TextAlignment">
        <Paragraph>Defines the alignment of an text within element.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> No alignment will be applied.</UnorderedListItem>
            <UnorderedListItem><Code>Start</Code> Aligns the text to the left.</UnorderedListItem>
            <UnorderedListItem><Code>Center</Code> Centers the text.</UnorderedListItem>
            <UnorderedListItem><Code>End</Code> Aligns the text to the right.</UnorderedListItem>
            <UnorderedListItem><Code>Justified</Code> Stretches the lines so that each line has equal width.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="TextTransform">
        <Paragraph>Defines the text transformation.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> No capitalization. The text renders as it is. This is default.</UnorderedListItem>
            <UnorderedListItem><Code>Lowercase</Code> Transforms all characters to lowercase.</UnorderedListItem>
            <UnorderedListItem><Code>Uppercase</Code> Transforms all characters to uppercase.</UnorderedListItem>
            <UnorderedListItem><Code>Capitalize</Code> Transforms the first character of each word to uppercase.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="TextWeight">
        <Paragraph>Defines the text weight.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> No weight will be applied.</UnorderedListItem>
            <UnorderedListItem><Code>Normal</Code> Defines normal characters. This is default.</UnorderedListItem>
            <UnorderedListItem><Code>Bold</Code> Defines thick characters.</UnorderedListItem>
            <UnorderedListItem><Code>Light</Code> Defines lighter characters.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="TextOverflow">
        <Paragraph>Determines how the text will behave when it is larger than a parent container.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> No overflow will be applied.</UnorderedListItem>
            <UnorderedListItem><Code>Wrap</Code> Text will wrap into a new line when it reaches the end of container.</UnorderedListItem>
            <UnorderedListItem><Code>NoWrap</Code> Prevents text from wrapping.</UnorderedListItem>
            <UnorderedListItem><Code>Truncate</Code> Truncate the text with an ellipsis.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="Screenreader">
        <Paragraph>Defines the visibility for screen readers.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>Always</Code> Default.</UnorderedListItem>
            <UnorderedListItem><Code>Only</Code> Hide an element to all devices except screen readers.</UnorderedListItem>
            <UnorderedListItem><Code>OnlyFocusable</Code> Show the element again when it’s focused.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>

<DocsPageSection>
    <DocsPageSectionHeader Title="MaskType">
        <Paragraph>Lists values that specify the type of mask used by an editor.</Paragraph>
        <UnorderedList>
            <UnorderedListItem><Code>None</Code> Specifies that the mask feature is disabled.</UnorderedListItem>
            <UnorderedListItem><Code>Numeric</Code> Specifies that the editor should accept numeric values and that the mask string must use the Numeric format syntax.</UnorderedListItem>
            <UnorderedListItem><Code>DateTime</Code> Specifies that the editor should accept date/time values and that the mask string must use the DateTime format syntax.</UnorderedListItem>
            <UnorderedListItem><Code>RegEx</Code> Specifies that the mask should be created using full-functional regular expressions.</UnorderedListItem>
        </UnorderedList>
    </DocsPageSectionHeader>
</DocsPageSection>